package com.info.zhiduoduo.admin.controller;

import com.info.zhiduoduo.admin.model.formbean.invoice.InvoiceAmountFormBean;
import com.info.zhiduoduo.admin.service.InvoiceMonthAmountService;
import com.info.zhiduoduo.common.constants.SmartResult;
import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;

import javax.annotation.Resource;

@Api(tags="月度开票金额统计")
@RestController
@RequestMapping("/invoiceMonthAmount")
public class InvoiceMonthAmountController {
   @Resource
   InvoiceMonthAmountService invoiceMonthAmountService;
   @PostMapping("/getInvoiceAmount")
    public SmartResult getInvoiceAmount(@RequestBody BaseSimpleFormBean<InvoiceAmountFormBean> formBean){
  return invoiceMonthAmountService.getInvoiceMakerAmount(formBean);
    }

}
